﻿


class WolfsAndSheeps implements IGenerateContent{
    private drawGrid: IDrawGrid;
    private grid: IGrid;

    constructor() {
        var createGrid = new WasCreateGrid(50, 50);
        //var createGrid = new Modulo2CreateGrid(200, 100);

        var initGrid = new WasInitGrid();
        //var initGrid = new TextInitGrid();

       // this.drawGrid = new HistoryDrawGrid();
        this.drawGrid = new DefaultDrawGrid();

        //var getCells = new DefaultGetCell();
        var getCells = new TorusGetCell();

        this.grid = new WasGrid(createGrid, initGrid, this.drawGrid, getCells);


    }

    GenerateContent(drawArea:IDrawArea) {
        this.grid.GenerateContent(drawArea);
    }
      
}

